package com.gcstorage.tvdev.net;

import android.text.TextUtils;

/**
 * Created by Administrator on 2016/3/21 0021.
 */
public class CustomException extends RuntimeException {
    public static final int NO_NET = -200;
    public static final int RE_LOGIN = 900;
    public int code;
    public String msg;

    public CustomException(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public CustomException(String msg) {
        if (TextUtils.isEmpty(msg)) {
            msg = "暂无异常信息";
        }
        this.msg = msg;
    }
}
